/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package appicalculadora;

/**
 *
 * @author Oscar Franco
 */
public class FabricaCalculadora {
    
    public static ICalculadora obtenerCalculadora(int tipo)
    {
        switch(tipo)
        {
            case 1 :{return new IntCalculadora();}
            case 2 :{return new FloatCalculadora();}
            case 3 :{return new DoubleCalculadora();}
        }
        return null;
    }
}
